<template>
  <div>
    <h3>Sync</h3>
    <div>
      <Child :count.sync="count" />
    </div>
  </div>
</template>

<script>
import Child from "./Child.vue";
export default {
  name: "Sync",
  components: { Child },
  data() {
    return {
      count: 0,
    };
  },
  mounted() {
    // 获取到一个包含所有子组件的对象数组
    console.log(this.$children);
  },
};
</script>

<style>
</style>